class Product {
    private String name;

    public Product(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }
}
package com.shop.controller.admin;

public class Product {
    private String name;
    private double price;

    public Product(String name, double price) {
        this.name = name;
        this.price = price;
    }

    public String getName() {
        return name;
    }

    public double getPrice() {
        return price;
    }

    @Override
    public String toString() {
        return "Product{name='" + name + "', price=" + price + "}";
    }
}
package com.shop.controller.admin;

public class Product {
    private String name;
    private double price;
    private boolean isEnabled;

    public Product(String name, double price) {
        this.name = name;
        this.price = price;
        this.isEnabled = true;
    }

    public String getName() {
        return name;
    }

    public double getPrice() {
        return price;
    }

    public boolean isEnabled() {
        return isEnabled;
    }

    public void enable() {
        this.isEnabled = true;
    }

    public void disable() {
        this.isEnabled = false;
    }

    @Override
    public String toString() {
        return "Product{name='" + name + "', price=" + price + ", isEnabled=" + isEnabled + "}";
    }
}